package com.uploadfile.service.impl;

import com.uploadfile.dao.bgWallDao;
import com.uploadfile.pojo.bgWallImg;
import com.uploadfile.service.bgWallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class bgWallServiceImpl implements bgWallService {
    @Autowired
    private bgWallDao bgWallDao;

    @Override
    public void save(bgWallImg bgWallImg) {
        bgWallDao.save(bgWallImg);
    }

    @Override
    public List<bgWallImg> findAll() {
        return bgWallDao.findAll();
    }

    @Override
    public void delete(String url) {
        bgWallDao.delete(url);
    }
}
